//
//  UITableView+Extension.m
//  FuturesNews
//
//  Created by 张伟 on 2021/3/22.
//

#import "UITableView+Extension.h"

@implementation UITableView (Extension)

- (void)cellWithNib:(Class)nibName{
    [self registerNib:[UINib nibWithNibName:NSStringFromClass([nibName class]) bundle:nil] forCellReuseIdentifier:NSStringFromClass([nibName class])];
}

- (__kindof UITableViewCell *)dequeueWithClass:(Class)className{
    return [self dequeueReusableCellWithIdentifier:NSStringFromClass([className class])];
}

@end
